package com.itkaien.commonutilsstater.controller;

import com.itkaien.commonutilsstater.service.HellowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/say")
public class SayController {
    @Autowired
    private HellowService hellowService;
    @RequestMapping("/hello")
    public String sayHello(){
        String result = hellowService.sayHello();
        return result;
    }
}
